package com.wbp.cms.client.project.domain;

import java.util.Date;

import com.wbp.cms.client.common.BaseDO;
import com.wbp.cms.client.util.DateUtils;


/**
 * @Description: 
 * @Department:
 * @author andy.lhc
 * @date 2016年3月6日 下午10:08:18 
 */
public class ProjectWorkOrderDO extends BaseDO {

  /**
   * 
   */
  private static final long serialVersionUID = 9034482472677570009L;

  private Long id;

  private Date createTime;
  
  private String createTimeDesc ;
  
  private Date updateTime ;
  
  private Long  projectId ;
  
  private String name ;
  
  private int status ;
  
  private String comments ;
  
  private int version ;

  private String description ;
  
  private String projectName ; // 页面显示用 
  
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    
    if(this.createTime!=null ){
      this.setCreateTimeDesc(DateUtils.format(this.createTime, DateUtils.DEFAULT_DATETIME_FORMAT_NO_SECOND) ) ;
    }
  }

  public Long getProjectId() {
    return projectId;
  }

  public void setProjectId(Long projectId) {
    this.projectId = projectId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getStatus() {
    return status;
  }

  public void setStatus(int status) {
    this.status = status;
  }

  public String getComments() {
    return comments;
  }

  public void setComments(String comments) {
    this.comments = comments;
  }

  public int getVersion() {
    return version;
  }

  public void setVersion(int version) {
    this.version = version;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getCreateTimeDesc() {
     return createTimeDesc;
  }

  public void setCreateTimeDesc(String createTimeDesc) {
    this.createTimeDesc = createTimeDesc;
  }

  public String getProjectName() {
    return projectName;
  }

  public void setProjectName(String projectName) {
    this.projectName = projectName;
  }
  
  
}
